package ooday01;
//学生类的测试类
public class StudayTest {
    public static void main(String[] args) {
        Student zg = new Student();
        //访问成员变量
        zg.name ="张光";
        zg.age = 20;
        zg.className = "jsd2013";
        zg.stuId = "001";
        //调用方法
        zg.sayHi();
        zg.study() ;
        zg.playWith("李林");

        Student ll = new Student();
        ll.name = "李林";
        ll.age = 21;
        ll.className = "jsd2013";
        ll.stuId = "002";
        ll.sayHi();
        ll.study();
        ll.playWith("张光");
        //引用类型------null(默认)
        Student zl = new Student();
        zl.sayHi();
        zl.study();
        zl.playWith("张光");


























    }
}
